package hector.tang.controller;

import hector.tang.exception.SysException;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/error")
public class ErrorController {

    public String testError() throws SysException{

        try{
            int i=1/0;
        }catch (Exception e){
            throw new SysException("页面出错了");
        }

        return "success";
    }
}
